#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>

#include "cpu.h"


int main(int argc, char* argv[]) {
    if (argc != 2) {
        printf("Usage: binary file <filename>\n");
        exit(1);
    }

    cpu Cpu(argv[1]);
    
    while (1) {
        Cpu.step();
        Cpu.stateSync();
    }
    
    return 0;
}